<%@ page language="java" import="java.util.*, com.zjut.an.news.manager.*, com.zjut.an.news.dao.*, com.zjut.an.webclass.manager.*, com.zjut.an.webclass.dao.*,com.zjut.an.config.manager.*,
com.zjut.an.util.tools.*,com.zjut.an.util.system.*,com.zjut.an.util.page.*,com.zjut.an.util.module.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页 - 三位一体招生报名系统</title>
    <script src="css/tailwindcss.css"></script>
    <script src="js/anime.min.js"></script>
    <link href="css/css2.css" rel="stylesheet">
    <link href="css/icon.css" rel="stylesheet">
    <style>
        * {
            font-family: 'Inter', sans-serif;
        }
        .gradient-bg { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%); }
        .card-hover { transition: all 0.3s ease; }
        .card-hover:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
        .announcement-item { transition: all 0.3s ease; }
        .announcement-item:hover { background-color: #f8fafc; }
    </style>
</head>
<%
    AnConfigManager anconfig = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
    HTMLCreat html = (HTMLCreat) SpringContextUtil.getBean("HTMLCreat");
    AnNewsManager manager = (AnNewsManager) SpringContextUtil.getBean("AnNewsManager");
    AnNews news =new AnNews();
    news.setIsrecommend("推荐");
    news.setIscheck("已审");
    PageModule module = manager.getDataByInstance(1,10,"adddate","desc",news);
%>
<body class="bg-gray-50">
<!-- 主要内容区域 -->
    <div class="min-h-screen">
        <!-- 系统介绍区域 -->
        <div class="text-center mb-12">
            <div class="gradient-bg rounded-2xl p-12 text-white mb-8">
                <%=anconfig.getSingleConfigInfoByName("引导内容")%>
            </div>
        </div>
        <!-- 注意事项 -->
        <section class="bg-white rounded-xl shadow-md p-6 mb-6">
            <%=anconfig.getSingleConfigInfoByName("注意事项")%>
        </section>
        <!-- 最新公告 -->
        <section class="bg-white rounded-xl shadow-md p-6">
            <h2 class="text-2xl font-bold text-blue-800 mb-4 flex justify-between items-center">
                <span>最新公告</span>
                <a href="zs_newsclass.jsp" class="text-sm text-blue-600 hover:text-blue-800 font-medium">更多 &gt;</a>
            </h2>
            <div class="space-y-4">
                <%
                    List list = module.getObjects();
                    for(int i=0; i<list.size(); i++) {
                        news = (AnNews)list.get(i);
                %>
                <div class="border-b pb-4">
                    <h3 class="font-medium text-lg"><a href="<%=html.newslink(news) %>" class="hover:underline"><%=news.getTitle()%></a></h3>
                    <div class="flex text-sm text-gray-500 mt-1">
                        <span><%=news.getAdddate()%></span>
                        <span class="mx-2">|</span>
                        <span><%=news.getAuthor()%></span>
                    </div>
                </div>
                <%}%>
            </div>
        </section>
    </div>

    <script src="js/default.js"></script>
</body>
</html>